package DP.strategy.calculate;

import DP.strategy.calculate.cal.Calculator;
import DP.strategy.calculate.cal.impl.Add;

/**
 * @author msi
 * 场景类
 */
public class Client {
    public final static String ADD_SYMBOL = "+";
    public final static String SUB_SYMBOL = "-";

    public static void main(String[] args) {
        int a =10;
        int b=20;
        Calculator calculator=new Add();
        Context context=new Context(calculator);
        System.out.println(context.exec(a, b));
    }
}
